/*
 * @Author: fengxx
 * @Date: 2025-10-13 10:51:07
 * @LastEditors: fengxx
 * @LastEditTime: 2025-10-23 08:59:46
 */
const menuRoutes = [
  {
    path: '/',
    component: 'BasicLayout',
    name: 'index',
    redirect: '/home',
    children: [
      // 首页
      {
        path: 'home',
        name: 'home',
        component: 'HomeView1',
        meta: {
          title: '首页',
          icon: 'House',
        },
      },
      {
        path: 'home1',
        name: 'home1',
        component: 'HomeView',
        meta: {
          title: '测试首页',
          icon: 'Compass',
        },
      },
      {
        path: 'todo',
        name: 'todoList',
        component: 'TodoList',
        meta: {
          title: '待办事项',
          icon: 'Avatar',
        },
      },
      {
        path: 'asyncComp',
        name: 'asyncComp',
        component: 'AsyncComp',
        meta: {
          title: '异步组件',
          icon: 'Avatar',
        },
      },
      {
        path: 'testView',
        name: 'testView',
        component: 'TestView',
        meta: {
          title: '测试',
          icon: 'Avatar',
        },
      },
    ],
  },
  {
    path: '/user',
    name: 'user',
    component: 'BasicLayout',
    redirect: '/user/list',
    meta: {
      title: '用户管理',
      icon: 'Setting',
    },
    children: [
      {
        path: 'list',
        name: 'userList',
        meta: {
          title: '用户列表',
          icon: 'House',
        },
        component: 'UserList',
        children: [],
      },
    ],
  },
  {
    path: '/product',
    name: 'product',
    component: 'BasicLayout',
    meta: {
      title: '商品模块',
      icon: 'House',
    },
    children: [
      {
        path: 'list',
        name: 'productList',
        component: 'Product/ProductList',
        meta: {
          title: '商品列表',
          icon: 'House',
        },
      },
    ],
  },
  {
    path: '/kk',
    name: 'kk',
    component: 'Product/ProductList',
    meta: {
      title: '商品列表',
      icon: 'House',
    },
  },
]

// [
//   {path:'',name: '',meta: {}, component:''},
//   {path:'',name: '',meta: {}, component:'', parentId: '/kk'}
// ]

export default menuRoutes
